package dao.system_log;

import java.util.List;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import entitybean.system_log.EntitybeanSystem_Log;
public class DaoImpl_System_Log extends HibernateDaoSupport implements Dao_System_Log{
	public void Insert_System_Log(EntitybeanSystem_Log e)
	{
		this.getHibernateTemplate().save(e);
	}
	public void	Update_System_Log(EntitybeanSystem_Log e)
	{
		this.getHibernateTemplate().update(e);
	}
	public void Delete_System_Log(EntitybeanSystem_Log e)
	{
		this.getHibernateTemplate().delete(e);
	}
	@SuppressWarnings("unchecked")
	public List<EntitybeanSystem_Log> Find_System_Log_By_Log_Kind(Integer log_kind)
	{
		return this.getHibernateTemplate().find("from EntitybeanSystem_Log where log_kind="+log_kind);
	}
	public EntitybeanSystem_Log Find_System_Log_By_Id(Integer Id)
	{
		EntitybeanSystem_Log e=new EntitybeanSystem_Log();
		List<EntitybeanSystem_Log>list=
		this.getHibernateTemplate().find("from EntitybeanSystem_Log where id="+Id);
		if(list.size()>0)
		{
			e=list.get(0);
			
		}
		return e;
	}
	}

